#pragma once

#include "Animation.h"
#include "Tool.h"
#include "EmitterManager.h"

class GameObject;
class ThermoObject;

class Thermo : public Tool
{
	bool isFire;
	Animation animation;
	Emitter* fireEmitter;
	Emitter* iceEmitter;
	Emitter* sparkEmitter;
	float temperatureValue;
	bool isDisable;

	tVector2D emitterPos;
	float castDist;
	tVector2D directionToCast;
	tVector2D directionToCast2;
	
	ThermoObject* thermoObj;

public:
	// Constructor
	Thermo(void);

	// Destructor
	~Thermo(void);

	//////////////////////////////////////////////////
	// Accessors:
	bool IsDisabled(void) const { return isDisable; }
	bool GetIsFire(void) const {return isFire;}

	//////////////////////////////////////////////////
	// Methods:
	void Shoot(void);
	void Update(float deltaTime);
	void Disable(void);
	void Enable(void);
	void Render(void) const;

	void DeactivateTool() override;
};

